package cn.hema.Client;


import cn.hema.model.BorrowRecord;
import cn.hema.model.Message;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.*;

@Slf4j
@Component
public class RelationshipServiceFallback implements RelationshipServiceClient {
    @Override
    public Message addRE(@RequestBody BorrowRecord borrowRecord) {
        System.out.println("????");
        Message message = new Message(borrowRecord);
        message.tag = "wa";
        return message;
    }

    @Override
    public Message back(@RequestBody BorrowRecord borrowRecord) {
        System.out.println("????");
        Message message = new Message(borrowRecord);
        message.tag = "wa";
        return message;
    }
}